package com.css.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@Getter
@AllArgsConstructor
public enum DmGyShbdztEnum {


    SHBDZT_BDCG("00", "绑定成功"),

    SHBDZT_SHWRY("01", "商户未入网"),

    SHBDZT_SHYWDKT("02", "商户业务待开通"),

    SHBDZT_DSH("03", "待审核"),

    SHBDZT_SHWTG("04", "审核未通过"),

    SHBDZT_JB("05", "解绑");

    private final String dm;

    private final String mc;

    public static String getMc(String dm) {
        DmGyShbdztEnum res = Arrays.stream(values())
                .filter(x -> x.getDm().equals(dm))
                .findFirst().orElse(null);
        return res == null ? null : res.getMc();
    }
}
